<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JavaScript的执行过程</title>
</head>
<body>
<script type="text/javascript">
console.log('Begin')
setTimeout(()=>{console.log('Hi~')},2000)
let b=new Date().getTime()
while(true){
	if(new Date().getTime()-b>=3000)break;
}
console.log('Over')
</script>
</body>
</html>